<style type="text/css">
.sel_wrap2{
    display: inline-block;
    position:relative;
    width:22%;
    height:1.5em;
    background:#fff url(images/png.png) no-repeat right center;
    border:1px solid #a0a0a0;
    border-radius:2px;
    -webkit-border-radius:2px;
    -moz-border-radius:2px;
    cursor:pointer;
    _filter:alpha(opacity=0);
}
.sel_wrap2 span{
    display: inline-block;
    font-size: 0.8em;
    /*line-height: 2em;*/
    padding:0.4em 0.4em;
}
.sel_wrap2 .select{
    width:100%;
    height:1.5em;
    z-index:4;
    font-size: 1em;
    position:absolute;
    top:0;
    left:0;
    margin:0;
    padding:0;
    opacity:0;
    cursor:pointer;
}
</style>
<li class="que-line sub-que-line" id="<?=$que->id?>">
    <!-- <span class="que-line-head">
       <?=$que->title?>
    </span>-->
    <input name="Q[<?=$que->id?>][id]" type="hidden" value="<?=$que->id?>"/>
    <ul class="que-line-content">
        <li id="clear_outer" onclick="visit_smoke(61);">
				   <p>
				       <?=$que->title?>
				   </p>
				   <div id="back_image61" onclick="visit_smoke(61);" class="not_show_image" ></div>
				   <input type="hidden" name="Q[6][ans][smoking]" value="no" class="radio_input" id="input61" />
				   <input name="Q[<?=$que->id?>][id]" type="hidden" value="<?=$que->id?>" />
        </li>
        <li id="clear_yes" style="display:none;">
            <ul class="que-line-content">
               <li class="clear-line" id="line_bottom">
                    <div class="clear-head">从多大年龄开始吸烟</div>
                    <div class="clear-select clear-select-lin" style="padding:10px 0;">
                        <div class="sel_wrap2" id="sel_wrap10">
                            <span>20</span>
                            <select name="Q[6][ans][age_smoke]" class="select" id="c_select10">
                            </select>
                        </div>
<!--                         <input type="text" name="Q[6][ans][age_smoke]" value="" class="input-text" class="clear-select-lin-left" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>-->
<!--                        <input type="range" max="100" min="10" step="1"  class="clear-select-lin-right" /> -->
                    </div>
                </li>
                <li class="clear-line" id="pay_smoke" onclick="visit_smoke(63);">
					<p>
				      每天吸几支烟是否大于10支
				   </p>
				   <div  id="back_image63" class="not_show_image"></div>
				   <input type="hidden" name="Q[6][ans][pay_smoke]" value="no" class="radio_input" id="input63" />
				   <input name="Q[<?=$que->id?>][id]" type="hidden" value="<?=$que->id?>" />
                </li>
            </ul>
        </li>
        <li class="line_bottom_none"id="clear_no" style="">
            <ul class="que-line-content">
                <li  class="clear-line" id="smoked"  onclick="visit_smoke(64);">
					<p >
				      是否存在被动吸烟的情况
				   </p>
				   <div id="back_image64" class="not_show_image"></div>
				   <input type="hidden" name="Q[6][ans][smoked]" value="no" class="radio_input" id="input64" />
				   <input name="Q[<?=$que->id?>][id]" type="hidden" value="<?=$que->id?>" />
                </li>
            </ul>
        </li>
    </ul>
</li>

<script>
function carry_m(max1,min1){
    var c_select10 = document.getElementById('c_select10');
    var temp1 = "";
    for(var i = min1; i <= max1; i++){
      temp1 += "<option value=" + i + ">" + i + "</option>";
    }
    c_select10.innerHTML = temp1;
}
carry_m(100,10);
function $(x){
    return document.getElementById(x);
  }
  var sel10=$("c_select10");
  var wrap10=$("sel_wrap10");
  var result10 =wrap10.getElementsByTagName("span");
  wrap10.onmouseover=function(){
    this.style.backgroundColor="#fff";
  }
  wrap10.onmouseout=function(){
    this.style.backgroundColor="#fafafa";
  }
  sel10.onchange=function(){
    var opt=this.getElementsByTagName("option");
    var len=opt.length;
    for(i=0;i<len;i++){
      if(opt[i].selected==true){
        x=opt[i].innerHTML;
      }
    }
    result10[0].innerHTML=x;
  }
</script>

















